﻿using EvertonApp.Admin.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using EvertonApp.Admin.Controllers;

namespace EvertonApp.Admin.Controllers
{
    public class ComercioController : Controller
    {
        //
        // GET: /Comercio/


        public ActionResult InicioComercio()
        {
          
            ComercioModel modeloComercio = new ComercioModel();

            //WebClient client = new WebClient();
            //string text = client.DownloadString("localhost:2004/api/values/5");

            string endPoint = @"http://localhost:2004/api/comercio/";
            var client = new RestClient(endPoint);
            var xml = client.MakeRequest();

            return PartialView(modeloComercio);
        }

    }
}
